package com.easymin.weixin.entity.sales;

import java.io.Serializable;
import java.util.Date;

/**
 * 客户所持优惠劵.
 *
 * @author Shine
 */
public class Coupon implements Serializable {

  private static final long serialVersionUID = 1L;
  public static final int COUPON_STATUS_NOTBIND = 0;
  public static final int COUPON_STATUS_NOTUSE = 1;// 可用
  public static final int COUPON_STATUS_HASUSED = 2;
  public static final int COUPON_STATUS_INVALID = 3;

  private Long id;

  private Date created;

  private Date updated;

  private Long passengerId;// 客户ID

  private String phone;// 客户手机

  private Long couponRuleId;// 优惠券规则ID

  private CouponRule couponRule;

  private Integer status;// 0未绑定 1未用(已绑定) 2已用 3失效

  private String code;// 编码

  private Long runCode;

  private String codeKey;// 密码

  private String appKey;


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public String getCodeKey() {
    return codeKey;
  }

  public void setCodeKey(String codeKey) {
    this.codeKey = codeKey;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public Long getCouponRuleId() {
    return couponRuleId;
  }

  public void setCouponRuleId(Long couponRuleId) {
    this.couponRuleId = couponRuleId;
  }

  public CouponRule getCouponRule() {
    return couponRule;
  }

  public void setCouponRule(CouponRule couponRule) {
    this.couponRule = couponRule;
  }

  public Long getRunCode() {
    return runCode;
  }

  public void setRunCode(Long runCode) {
    this.runCode = runCode;
  }

  public Long getPassengerId() {
    return passengerId;
  }

  public void setPassengerId(Long passengerId) {
    this.passengerId = passengerId;
  }

  public String getAppKey() {
    return appKey;
  }

  public void setAppKey(String appKey) {
    this.appKey = appKey == null ? null : appKey.trim();
  }


}
